//
//  UIBarButtonItem+Extension.swift
//  LSWeiBo0808
//
//  Created by 李明禄 on 2017/8/13.
//  Copyright © 2017年 SocererGroup. All rights reserved.
//

import UIKit

extension UIBarButtonItem {
    convenience init(title: String?, fontSize: CGFloat = 15, normalColor: UIColor, highlightedColor: UIColor, target: Any?, action: Selector, controlEvents: UIControlEvents) {
        let button = UIButton.cz_textButton(title, fontSize: 14, normalColor: normalColor, highlightedColor: highlightedColor)
        button?.addTarget(target, action: action, for: controlEvents)
        
        self.init(customView: button!)
    }

}
